<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/common/meta.jsp" %>
<title>验证邮件</title>
<link type="text/css" rel="stylesheet"
	href="${ctx }/skins/regsuccess.css" />
<script type="text/javascript">
var email = null;
email = "${user.email}";
start = email.indexOf('@');
end = email.indexOf('.', start);
host = email.substring(start+1, end);
$(function(){
	if(host=="sina"){
		$("p[class='reg_notify_button_p']").html("<a href='http://mail.sina.com' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="163"){
		$("p[class='reg_notify_button_p']").html("<a href='http://mail.163.com' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="126"){
		$("p[class='reg_notify_button_p']").html("<a href='http://www.126.com' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="qq"){
		$("p[class='reg_notify_button_p']").html("<a href='http://mail.qq.com' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="gmail"){
		$("p[class='reg_notify_button_p']").html("<a href='https://accounts.google.com' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="189"){
		$("p[class='reg_notify_button_p']").html("<a href='http://webmail28.189.cn/webmail/' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	if(host=="139"){
		$("p[class='reg_notify_button_p']").html("<a href='http://mail.10086.cn/' target='_blank' class='reg_notify_button'>立即进入邮箱</a>");
	}
	$("#resend_email").click(function(){
		window.location.href="${ctx}/user/register.action?method:sendAgain&user.id=${user.id}&again=1";
	});
});
</script>
</head>
<body>
	<div id="header">
		<div class="logo">
			<a href="${ctx }/"><img alt="njupt_blog"
				src="${ctx}/img/njupt.jpg">
			</a>
		</div>
	</div>
	<div id="content">
		<div class="reg_notify_info">
		<c:if test="${not empty param.again }"><p class="reg_send_succ">重发验证信成功！</p>
			<p class="reg_notify_succ_p">验证邮件已发送到
			${user.email},您需要点击邮件中的确认链接来完成注册！</p></c:if>
		<c:if test="${empty param.again }">
			<p class="reg_send_succ">验证邮件已发送到
			${user.email},您需要点击邮件中的确认链接来完成注册！</p>
		</c:if>
			<p class="reg_notify_button_p">
			</p>
		</div>
		<div class="reg_notify_tip">
			<h4>没有收到确认邮件，怎么办？</h4>
			<p class="reg_notify_tip_p">1.看看是否在邮箱的回收站中、垃圾邮件中</p>
			<p class="reg_notify_tip_p">
				2.确认没有收到，<em id="resend_email">点此重发一封</em><img id="resend_loading"
					src="${ctx }/img/loading.gif" /><span id="resend_err"
					class="resend_err"></span>
			</p>
		</div>
	</div>
</body>
</html>